/**
 * 
 */
package shared;

import java.util.ArrayList;
import java.util.Vector;

/**
 * @author Sefverl
 *
 */
public class TaskObject 
{
	private ArrayList<CoordObject> coords;
	private ArrayList<ActionObject> actions;
	
	public TaskObject()
	{
		
	}
	
	private void initCoordArray()
	{
		coords = new ArrayList<CoordObject>();
	}
	
	private void initActionArray()
	{
		actions = new ArrayList<ActionObject>();
	}
	
	public void addCoordObject(CoordObject obj)
	{
		if(coords == null) initCoordArray();
		
		coords.add(obj);
	}
	
	public void addActionObject(ActionObject obj)
	{
		if(actions == null) initActionArray();
		
		actions.add(obj);
	}

	public boolean coordsExist()
	{
		return coords != null && coords.size() > 0 ;
	}
	
	public boolean actionsExist()
	{
		return actions != null && actions.size() > 0 ;
	}
	
	public ArrayList<CoordObject> getCoordObjects()
	{
		return coords;
	}
	
	public ArrayList<ActionObject> getActionObjects()
	{
		return actions;
	}
}
